import request from '@/utils/request'

export function logPageList(query) {
  return request({
    url: '/hawk-eye/log/page',
    method: 'get',
    params: query
  })
}

export function logPageListForRepair(query) {
  return request({
    url: '/hawk-eye/log/page-for-repair',
    method: 'get',
    params: query
  })
}

export function logDetail(id) {
  return request({
    url: '/hawk-eye/log/detail/' + id,
    method: 'get'
  })
}

export function addLog(data) {
  return request({
    url: '/hawk-eye/log/save',
    method: 'post',
    data: data
  })
}

export function updateLog(data) {
  return request({
    url: '/hawk-eye/log/update',
    method: 'put',
    data: data
  })
}

export function removeLog(id) {
  return request({
    url: '/hawk-eye/log/remove/' + id,
    method: 'delete'
  })
}
